#ifndef MYWIDGET_H
#define MYWIDGET_H

#include <QWidget>
#include <QPushButton>
#include "subwidget.h"

class MyWidget : public QWidget
{
    Q_OBJECT

public:
    MyWidget(QWidget *parent = nullptr);
    ~MyWidget();

    //槽函数是没有返回值的，要和信号一致，信号没有返回值
public slots:
    void changeWin1();
    void exChange();
    void Noexec();
    void Havexec(int, QString);

private:
    QPushButton b1;
    QPushButton* b2;
    QPushButton b3;

    subWidget w;
};
#endif // MYWIDGET_H
